import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import '@/assets/font/iconfont.css'
import './index.css'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);
Vue.config.productionTip = false

Vue.directive('imagerror', {
  inserted(el,binding){
    // console.log(el,binding)
    el.onerror=function(){
      el.src=binding.value
    }
  }
});


new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app')
